<!--
 * @Author: 陈德基
 * @Date: 2023-12-13 23:41:40
 * @LastEditTime: 2023-12-14 00:12:06
 * @Description: 
 * @FilePath: /fullstack/react/demo/demo04/box_demo.html
 * 联系方式：
 * wx: melody_2009
 * qq: 7815171323 
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./style.css">

  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    li {
      list-style: none;
    }
    a {
      text-decoration: none;
    }
    .news {
      margin: 100px auto;
      width: 360px;
      height: 200px;
    }

    .news .hd {
      height: 34px;
      background-color: #eee;
      border: 1px solid #dbdee1;
      border-left: 0;
    }

    .news .hd a {
      margin-top: -1px;
      width: 48px;
      height: 34px;
      display: block;
      background-color: #fff;

      border-top: 3px solid #ff8400;
      border-right: 1px solid #dbdee1;

      text-align: center;
      line-height: 30px;
      font-size: 14px;
      color: #333;
    }

    .news .bd {
      padding: 5px;
    }

    .news .bd li {
      background-image: url(./images/news_pic.jpg);
      background-repeat: no-repeat;
      background-position: 0 center;
      padding-left: 15px;

    }

    .news .bd li a {
      background: url(./images/news_pic.jpg) no-repeat 0 center;
      padding-left: 20px;

      font-size: 12px;
      color: #666;
      line-height: 24px

    }

    .news .bd li a:hover {
      color: #ff8400;
    }
  
  </style>

</head>

<body>
  <div class="news">
    <div class="hd"><a href="">新闻</a></div>
    <div class="bd">
      <ul>
        <li><a href="#">测试内容</a></li>
        <li><a href="#">测试内容</a></li>
        <li><a href="#">测试内容</a></li>
        <li><a href="#">测试内容</a></li>
        <li><a href="#">测试内容</a></li>
        <li><a href="#">测试内容</a></li>
      </ul>
    </div>
  </div>
</body>